//imgWidth = ;  /*根据自己的图片大小计算*/

//@font-face {
//  font-family: "icons-turn-arrow";
//  src: url("../fonts/icons/turn-arrow.eot") format("embedded-opentype"), url("../fonts/icons/turn-arrow.woff") format("woff"), url("../fonts/icons/turn-arrow.ttf") format("truetype"), url("../fonts/icons/turn-arrow.svg") format("svg");
//}


/* Base Application Styles */

html,
body {
  width: 100%;
  height: 100%;
  background-color: #222;
}

#app {
  width: 100%;
  height: 100%;
}


/*stage start*/

.stage {
  position: relative;
  width: 100%;
  height: 100%;
}


/*stage end*/


/*img start*/

.img-sec {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #ddd;
  perspective: 1800px; /*景深值。值越大，其他改变发生时，效果越小。！！属性无效*/
}

.img-figure {
  position: absolute;
  width: 260px;
  height: 300px;
  margin: 0;
  padding: 30px;
  background-color: #fff;
  box-sizing: border-box;
  cursor: pointer;

  transform-origin: 0 50% 0; /*旋转中心是左线*/
  transform-style: preserve-3d;
  transition: transform .6s ease-in-out, left .6s ease-in-out, top .6s ease-in-out;
  &.is-inverse {
    transform: translate(260px) rotateY(180deg);
  }
  img{
    width:100%;
  }
  figcaption {
    text-align: center;
    margin: 20px 0px 0px 0px;
    color: #a7a0a2;
    font-size:16px;
    .img-title {
      margin: 20px 0 0 0;
      color: #a7a0a2;
      font-size: 16px;
    }
    .img-back {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding: 50px 40px;
      overflow: auto;
      color: #a7a0a2;
      font-size: 22px;
      line-height: 1.25;
      text-align: center;
      background-color: #fff;
      box-sizing: border-box;
      /*先开始时.img-back，旋转了180度，因为translateZ(1px)，位于正面图像的下方*/
      /*当.img-figure旋转时，.img-back又旋转了180度，旋转度数为360,因为translateZ(1px)，位于正面图像的上方*/
      transform: rotateY(180deg) translateZ(1px);
      /*translateZ(1px) 是为了解决Safari 的bug 在http://www.imooc.com/video/11743 13 分 有解释*/
      backface-visibility:hidden;
    }
  }
}


/*img end*/


/*controller start*/

.controller-nav {
  position: absolute;
  left: 0;
  bottom: 30px;
  z-index: 101;  /*10的2次方*/
  text-align: center;
  width:100%;
}
.controller-unit{
  display: inline-block;
  margin: 0 5px;
  width: 30px;
  height: 30px;

  text-align: center;
  vertical-align: middle;

  cursor: pointer;
  background-color:#aaa;
  border-radius:50%;

  transform: scale(0.5);

  &.is-center{
    background-color:#888;

    transform: scale(1);
    transition: transform .6s ease-in-out, background-color .3s;

    &::after{
      color: #fff;
      font-family: "icons-turn-arrow";
      font-size: 80%;
      line-height:30px;
      content: "\e600";

      -webkit-font-smoothing: antialiased;
      -moz-font-smoothing: grayscale;
    }

    &.is-inverse {
      background-color: #555;

      transform: rotateY(180deg);
    }
  }
}


/*controller end*/
